<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" enctype="multipart/form-data" method="post">
                    <div class="widget-body">
                        <fieldset>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">上传设置</div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">默认上传方式</label>
                                <div class="am-u-sm-9">
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[default]" value="local" data-am-ucheck
                                            {$model['default'] == 'local' ? 'checked' : ''} >
                                        本地
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[default]" value="qcloud" data-am-ucheck
                                            {$model['default'] == 'qcloud' ? 'checked' : ''} >
                                        腾讯云
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[default]" value="aliyun" data-am-ucheck
                                            {$model['default'] == 'aliyun' ? 'checked' : ''} >
                                        阿里云
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[default]" value="qiniu" data-am-ucheck
                                            {$model['default'] == 'qiniu' ? 'checked' : ''} >
                                        七牛云
                                    </label>
                                </div>
                            </div>
                            <input type="hidden" name="data[engine][local]" value="">
							<div class="widget-head am-cf">
                                <div class="widget-title am-fl">腾讯云</div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">
                                    存储空间名称 <span class="tpl-form-line-small-title">Bucket</span>
                                </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][qcloud][bucket]"
                                           value="{$model['engine']['qcloud']['bucket']}">
								</div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">
                                    所属地域 <span class="tpl-form-line-small-title">Region</span>
                                </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][qcloud][region]"
                                           value="{$model['engine']['qcloud']['region']}">
								</div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">SecretId</label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][qcloud][secret_id]"
                                           value="{$model['engine']['qcloud']['secret_id']}">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">SecretKey</label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][qcloud][secret_key]"
                                           value="{$model['engine']['qcloud']['secret_key']}">
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">
                                    空间域名 <span class="tpl-form-line-small-title">Domain</span>
                                </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][qcloud][domain]"
                                           value="{$model['engine']['qcloud']['domain']}">
                                </div>
                            </div>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">阿里云</div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">
                                    存储空间名称 <span class="tpl-form-line-small-title">Bucket</span>
                                </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][aliyun][bucket]"
                                           value="{$model['engine']['aliyun']['bucket']}">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">AccessKeyId</label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][aliyun][access_key_id]"
                                           value="{$model['engine']['aliyun']['access_key_id']}">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">AccessKeySecret</label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][aliyun][access_key_secret]"
                                           value="{$model['engine']['aliyun']['access_key_secret']}">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">
                                    空间域名 <span class="tpl-form-line-small-title">Domain</span>
                                </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][aliyun][domain]"
                                           value="{$model['engine']['aliyun']['domain']}">
                                </div>
                            </div>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">七牛云</div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">
                                    存储空间名称 <span class="tpl-form-line-small-title">Bucket</span>
                                </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][qiniu][bucket]"
                                           value="{$model['engine']['qiniu']['bucket']}">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">
                                    ACCESS_KEY <span class="tpl-form-line-small-title">AK</span>
                                </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][qiniu][access_key]"
                                           value="{$model['engine']['qiniu']['access_key']}">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">
                                    SECRET_KEY <span class="tpl-form-line-small-title">SK</span>
                                </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][qiniu][secret_key]"
                                           value="{$model['engine']['qiniu']['secret_key']}">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">
                                    空间域名 <span class="tpl-form-line-small-title">Domain</span>
                                </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[engine][qiniu][domain]"
                                           value="{$model['engine']['qiniu']['domain']}">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {

        $('#my-form').formPost();
    });
</script>
